package com.taotao.frame;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Slf4j
@SpringBootApplication
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)
public class WxServer {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(WxServer.class, args);
        String configPath = context.getEnvironment().getProperty("spring.config.location");
        String tomcatPort = context.getEnvironment().getProperty("server.port");


        log.info("----------------WxServer start success-----------------" + configPath + "," + tomcatPort);

    }
}
